<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <script>
                function title() {
                    document.getElementById('admin').className='selected';
                }
                window.onload=title;
            </script>

            <h:form id="cepForm" enctype="multipart/form-data">
                <h1 class="title">Administração</h1>
                <div class="container_24 clearfix"> 
                    <p:menu styleClass="grid_5" >
                        <p:submenu label="Caixa">
                            <p:menuitem url="income.xhtml" value="Caixa Diário" />
                            <p:menuitem url="financialDoctor.xhtml" value="Caixa por Médico" />
                            <p:menuitem url="financialOperator.xhtml" value="Caixa por Convênio" />
                            <p:menuitem url="financialProcedure.xhtml" value="Caixa por Procedimento" />
                            <p:menuitem url="financialUser.xhtml" value="Caixa por Atendente" />
                            <p:menuitem url="financialDate.xhtml" value="Caixa por Intervalo Data" />
                        </p:submenu>
                    </p:menu>
                    <p:menu styleClass="grid_5" >
                        <p:submenu label="Outras Receitas">
                            <p:menuitem url="outrasreceitas.xhtml" value="Cadastrar outras receitas" />
                            <p:menuitem url="searchreceitas.xhtml" value="Consultar" />
                        </p:submenu>

                        <p:submenu label="Despesas">
                            <p:menuitem url="financialoutput.xhtml" value="Cadastrar Saída" />
                            <p:menuitem url="searchoutput.xhtml" value="Consultar" />
                        </p:submenu>
                        <p:submenu label="Estoque" rendered="false">
                            <p:menuitem url="indexprocedure.xhtml" value="Fornecedores" />
                            <p:menuitem url="indexcbo.xhtml" value="Produtos" />
                        </p:submenu>
                        
                    </p:menu>
                    <p:menu styleClass="grid_5" >
                        
                        <p:submenu label="Convênio" >
                            <p:menuitem outcome="compensacaoConvenio.xhtml" style="white-space: pre-wrap;" value="Compensação" />

                            <!--                                <p:menuitem outcome="financialOperator.xhtml?r=1" style="white-space: pre-wrap;" value="Prestação de Contas Convênio" />-->
                            <p:menuitem outcome="financialOperatorConvenio.xhtml" style="white-space: pre-wrap;" value="Prestação de Contas" />
                            <p:menuitem outcome="feesDoctor.xhtml" style="white-space: pre-wrap;" 
                                        value="Honorários Médicos" />
                            <p:menuitem outcome="relprocedure.xhtml" style="white-space: pre-wrap;" value="Listagem de Procedimentos"  
                                        title="Lista todos os procedimentos atendidos pelo convênio"/>
                        </p:submenu>
                        
                    
                    </p:menu>
                    
                    <p:menu styleClass="grid_5" >
                        
                        <p:submenu label="Configurações">
                            <p:menuitem url="indexoperator.xhtml" value="Convênios" />
                            <p:menuitem url="indexprocedure.xhtml" value="Procedimento" />
                            <p:menuitem url="indexdoctor.xhtml" value="Médico" />
                            <p:menuitem url="indexcbo.xhtml" value="CBO" />
                            <p:menuitem url="indexuser.xhtml" value="Usuário" />
                        </p:submenu>

                    </p:menu>
                    <div class="clear"/>
                    <p:menu styleClass="grid_5" >
                        
                        <p:submenu label="Contabilidade">
                            <p:menuitem url="dre.xhtml" value="DRE" />
                            <p:menuitem url="dre.xhtml" value="Relatórios" />
                        </p:submenu>
                        
                    </p:menu>

                    <p:menu styleClass="grid_5" rendered="#{managerCash.verifyMaster()}" >
                        <p:submenu label="Conta Bancária">
                            <p:menuitem url="createcash.xhtml" value="Cadastrar Entrada/Saida" />
                            <p:menuitem url="transferCash.xhtml" value="Transferência" />
                            <p:menuitem url="searchcash.xhtml" value="Pesquisar" />
                            <p:menuitem url="indexcaixa.xhtml" value="Extrato Financeiro" />
                            <p:menuitem url="createContaBancaria.xhtml" value="Adicionar Conta" />
                        </p:submenu>
                    </p:menu>
                </div>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
